import { SHOW_TAB_BAR, Hidden_TAB_BAR } from "../../utils/const";

export const IsHiddenTabBarReducer = (pre = false, action) => {
  const { type, data } = action;
  switch (type) {
    case SHOW_TAB_BAR:
      return data;
    case Hidden_TAB_BAR:
      return data;
    default:
      return false;
  }
};
